Repository navigation
test(id): independent field-22 oracle for /proc stat start-time parser (#8816) - #8841
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #8816 (task 15064): the
/proc/<pid>/statstart-time parser tests used the parser as their own oracle, so extracting the wrong field would still pass.get_process_start_timeinto a pure helper,parse_proc_stat_start_time, inpkgs/id/src/commands/serve.rs— no behaviour change to the caller.property_parse_proc_stat_start_time_matches_oracle): generated comm values (spaces/parens included) and an independently chosen field-22 value; every other field carries a distinct field-number-derived value, so a wrong-field extraction fails.Tests
cargo test -p id --lib proc_stat— 2 passed (the two new tests).cargo test -p id --lib is_process_alive— 6 passed (existing id(serve): serve-lock staleness check tests pid existence, not serve identity — a reused pid wedges serve discovery on a dead endpoint #3040 regression tests stay green).fields.get(18)) makes BOTH new tests fail; the change was reverted and the file verified by sha256.cargo test -p id(all targets) currently fails to compile the unrelatedtests/probe_attestation_sign.rstarget — proven pre-existing at this branch's HEAD (sign_claimtakes 6 arguments, the test passes 5; neither file is touched by this PR) and already filed as pkgs/id: probe_attestation_sign test does not compile on main — sign_claim gained a GenesisAgreement parameter #8801 / pkgs/id: probe_attestation_sign test target does not compile on main (sign_claim gained &GenesisAgreement arg) #8756. This PR is therefore verified with--libscoping.Per the task packet scope, this PR does not reply to or resolve the source review thread on PR #8667 (that belongs to the pr-comment-review job).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.